﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SD.IBUS;
using SD.Entities;
using SD.IDAL;
using SD.DAL;
using System.Data.SqlClient;

namespace SD.BUS
{
    public class TrustRegionBIZ : BaseBIZ, ITrustRegionBIZ
    {
        /// <summary>
        /// Get trust region list by filter expression
        /// </summary>
        /// <param name="includeInactive"></param>
        /// <param name="filterExpression"></param>
        /// <returns></returns>
        public List<TrustRegion> GetByFilter(bool includeInactive, string filterExpression)
        {
            List<TrustRegion> result = new List<TrustRegion>();

            try
            {
                ITrustRegionDAO trDAO = new TrustRegionDAO();
                result = trDAO.GetByFilter(includeInactive, filterExpression);
            }
            catch (SqlException ex)
            {
                throw ex;
            }

            return result;        
        }
    }
}
